#include<bits/stdc++.h>
#define fi first
#define se second
#define PII pair<int,int>
using namespace std;

const int N=1e5+5;
int n;
int lst[N];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++) cin>>lst[i];
    sort(lst+1,lst+1+n);
    int r=1,l=1;
    int ans=0;
    while(l<=r&&r<=n)
    {
        if(lst[r]>lst[l])
        {
            ans++;
            l++;
        }
        r++;
    }
    cout<<(n-ans);
    return 0;
}
